]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
gdm/authPrompt: Clear the inactive entry too
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Mon, 25 Aug 2025 12:29:55 +0000 (14:29 +0200)
committerMarge Bot <marge-bot@gnome.org>
Sat, 30 Aug 2025 01:36:14 +0000 (01:36 +0000)
In multi-factor authentication cases we may end up clearing the current
entry, but we are potentially leaving a previously filled inactive entry
as it is.

Avoid this, and clear all the entries we have when clearing the prompt.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3850>

js/gdm/authPrompt.js

index 8dcbfe30031723d07f3dd2a7e49e2d260273e6bf..d7e94000d8e8d963fe103bd3305c5f9b3c864427 100644 (file)
@@ -492,6 +492,7 @@ export const AuthPrompt = GObject.registerClass({
 
     clear() {
         this._entry.text = '';
+        this._inactiveEntry.text = '';
         this.stopSpinning();
         this._authList.clear();
         this._authList.hide();